<?php
if (preg_match("/\\d+\\.\\d+\\.\\d+\\.\\d+/", $_SERVER['HTTP_HOST']))
{
    header("HTTP/1.0 404 Not Found");
    exit();
}
$g_conf = array();
include_once( "hip.php" );
include_once( "config.php" );
include_once( "class/functions.php" );
include_once( "class/db.php" );
include_once( "class/sessions.php" );
include_once( "class/user.php" );
include_once( "class/template.php" );
include_once( "class/ui.php" );
include_once( "class/config.php" );
include_once( "function.php" );
if (!user::islogin())
{
    exit();
}
$rs = getdb("select * from lotto where open>='" . date("Y-m-d") . "' order by open");
if ($rs->eof)
{
    exit();
}
$open = $rs->f['open'];
$round = $rs->f['round'];
$lotto_id = $rs->f['id'];
$i = 1;
while ($i <= 6)
{
    echo $rs->f["n" . $i] . ",";
    ++$i;
}
echo $rs->f['spec'];
?>